<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html class="supernova"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="alternate" type="application/json+oembed" href="https://www.jotform.com/oembed/?format=json&amp;url=http%3A%2F%2Fwww.jotform.com%2Fform%2F61211172649451" title="oEmbed Form"><link rel="alternate" type="text/xml+oembed" href="https://www.jotform.com/oembed/?format=xml&amp;url=http%3A%2F%2Fwww.jotform.com%2Fform%2F61211172649451" title="oEmbed Form">
<meta property="og:title" content="test" >
<meta property="og:url" content="http://www.jotform.me/form/61211172649451" >
<meta property="og:description" content="Please click the link to complete this form.">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="HandheldFriendly" content="true" />
<title>图书详情变更</title>
<link href="https://cdn.jotfor.ms/static/formCss.css?3.3.12874" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="https://cdn.jotfor.ms/css/styles/nova.css?3.3.12874" />
<link type="text/css" media="print" rel="stylesheet" href="https://cdn.jotfor.ms/css/printForm.css?3.3.12874" />
<link type="text/css" rel="stylesheet" href="https://cdn.jotfor.ms/themes/CSS/566a91c2977cdfcd478b4567.css?"/>
<style type="text/css">
    .form-label-left{
        width:150px !important;
    }
    .form-line{
        padding-top:12px;
        padding-bottom:12px;
    }
    .form-label-right{
        width:150px !important;
    }
    body, html{
        margin:0;
        padding:0;
        background:false;
    }

    .form-all{
        margin:0px auto;
        padding-top:20px;
        width:690px;
        color:#555 !important;
        font-family:"Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, sans-serif;
        font-size:14px;
    }
</style>

<script src="https://cdn.jotfor.ms/static/prototype.forms.js" type="text/javascript"></script>
<script src="https://cdn.jotfor.ms/static/jotform.forms.js?3.3.12874" type="text/javascript"></script>
<script type="text/javascript">
   JotForm.init(function(){
      JotForm.alterTexts({"required":"This field is required.","requireOne":"At least one field required.","requireEveryRow":"每行都是必须的","requireEveryCell":"Every cell is required.","alphabetic":"睡到发生的发生的","cyrillic":"This field can only contain cyrillic characters","url":"This field can only contain a valid URL","numeric":"這個表格只能容納數值","alphanumeric":"這個表格只能容納字母與數字","currency":"This field can only contain currency values.","fillMask":"Field value must fill mask.","incompleteFields":"蘇","uploadFilesize":"檔案大小不能超過","uploadFilesizemin":"File size cannot be smaller than:","confirmClearForm":"再次確定是否要清除所有填寫資料","lessThan":"您的分數應該少於或等於","email":"輸入一個有效的Email地址","uploadExtensions":"您只能上傳以下檔案：","pleaseWait":"请等待...","confirmEmail":"E-mail 並不符合","submissionLimit":"Sorry! Only one entry is allowed.  Multiple submissions are disabled for this form.","gradingScoreError":"分數的總和應該只能少於或多於","inputCarretErrorA":"輸入的內容不應小於最小值","inputCarretErrorB":"输入不能超过限定的最大值","maxDigitsError":"The maximum digits allowed is","freeEmailError":"Free email accounts are not allowed","minSelectionsError":"The minimum required number of selections is","maxSelectionsError":"The maximum number of selections allowed is","pastDatesDisallowed":"日期不应过时","dateLimited":"This date is unavailable.","dateInvalid":"日期無效。日期格式為{format}","multipleFileUploads_typeError":"{file} has invalid extension. Only {extensions} are allowed.","multipleFileUploads_sizeError":"{file} is too large, maximum file size is {sizeLimit}.","multipleFileUploads_minSizeError":"{file} is too small, minimum file size is {minSizeLimit}.","multipleFileUploads_emptyError":"找不到檔案，請重新選擇","multipleFileUploads_onLeave":"The files are being uploaded, if you leave now the upload will be cancelled.","multipleFileUploads_fileLimitError":"Only {fileLimit} file uploads allowed.","generalError":"错误！烦请更正后再继续。","generalPageError":"There are errors on this page. Please fix them before continuing.","wordLimitError":"Too many words. The limit is","wordMinLimitError":"Too few words.  The minimum is","characterLimitError":"Too many Characters.  The limit is","characterMinLimitError":"Too few characters. The minimum is","ccInvalidNumber":"Credit Card Number is invalid.","ccInvalidCVC":"CVC number is invalid.","ccInvalidExpireDate":"Expire date is invalid.","ccMissingDetails":"請填入信用卡資料","ccMissingProduct":"Please select at least one product.","ccMissingDonation":"Please enter numeric values for donation amount.","disallowDecimals":"Please enter a whole number."});
	JotForm.clearFieldOnHide="disable";
	JotForm.onSubmissionError="jumpToFirstError";
   });
</script>
</head>
<body>
<form class="jotform-form" action="<c:url value='/admin/edit'/>"  method="post" name="form_61211172649451" id="61211172649451" accept-charset="utf-8">
  	<input type="hidden" name="bid" value="${book.bid }"><br>
  <div class="form-all">
    <ul class="form-section page-section">
      <li class="form-line" data-type="control_image" id="id_10">
        <div id="cid_10" class="form-input-wide">
          <img src="<c:url value='/${book.image }'/>" height="160" width="130" />
        </div>
      </li>
      <li class="form-line" data-type="control_textbox" id="id_3">
        <label class="form-label form-label-left form-label-auto" id="label_3" for="input_3"> 书名 </label>
        <div id="cid_3" class="form-input jf-required">
          <input type="text" class=" form-textbox" data-type="input-textbox" id="input_3" name="bname" size="20" value="${book.bname }" />
        </div>
      </li>
      <li class="form-line" data-type="control_textbox" id="id_4">
        <label class="form-label form-label-left form-label-auto" id="label_4" for="input_4"> 作者 </label>
        <div id="cid_4" class="form-input jf-required">
          <input type="text" class=" form-textbox" data-type="input-textbox" id="input_4" name="author" value="${book.author }" size="20" />
        </div>
      </li>
      <li class="form-line" data-type="control_textbox" id="id_5">
        <label class="form-label form-label-left form-label-auto" id="label_5" for="input_5"> 出版社 </label>
        <div id="cid_5" class="form-input jf-required">
          <input type="text" class=" form-textbox" data-type="input-textbox" id="input_5" name="publish" size="20" value="${book.publish }" />
        </div>
      </li>
      <li class="form-line" data-type="control_textbox" id="id_6">
        <label class="form-label form-label-left form-label-auto" id="label_6" for="input_6"> ISBN </label>
        <div id="cid_6" class="form-input jf-required">
          <input type="text" class=" form-textbox" data-type="input-textbox" id="input_6" name="isbn" value="${book.isbn }" size="20" />
        </div>
      </li>
      <li class="form-line" data-type="control_textbox" id="id_7">
        <label class="form-label form-label-left form-label-auto" id="label_7" for="input_7"> 库存 </label>
        <div id="cid_7" class="form-input jf-required">
          <input type="text" class=" form-textbox" data-type="input-textbox" id="input_7" name="stock" size="20" value="${book.stock }" />
        </div>
      </li>
      <li class="form-line" data-type="control_textbox" id="id_8">
        <label class="form-label form-label-left form-label-auto" id="label_8" for="input_8"> 价格 </label>
        <div id="cid_8" class="form-input jf-required">
          <input type="text" class=" form-textbox" data-type="input-textbox" id="input_8" name="price" size="20" value="${book.price }"/>
        </div>
      </li>
      <li class="form-line" data-type="control_dropdown" id="id_9">
        <label class="form-label form-label-left form-label-auto" id="label_9" for="input_9"> 分类 </label>
        <div id="cid_9" class="form-input jf-required">
          <select class="form-dropdown" style="width:150px" id="input_9" name="cid">
		<c:forEach items="${categoryList }" var="category">
     		<option value="${category.cid }" 
     		<c:if test="${category.cid eq book.category.cid }">selected="selected"</c:if>
     		>${category.cname }</option>
     		
     	</c:forEach>
          </select>
        </div>
      </li>
      <li class="form-line" data-type="control_button" id="id_2">
        <div id="cid_2" class="form-input-wide">
          <div style="margin-left:156px" class="form-buttons-wrapper">
            <button id="input_2" type="submit" class="form-submit-button">
              提交
            </button>
          </div>
        </div>
      </li>
      <li style="display:none">
        Should be Empty:
        <input type="text" name="website" value="" />
      </li>
    </ul>
  </div>
  <input type="hidden" id="simple_spc" name="simple_spc" value="61211172649451" />
  <script type="text/javascript">
  document.getElementById("si" + "mple" + "_spc").value = "61211172649451-61211172649451";
  </script>
</form></body>
</html>
